public class Animal_demo {
    public static void main(String[] args){
        Animal animal=new Cat();
        animal.cry();
        animal.eat();
        System.out.println("----------");
        animal=new Dog();
        animal.cry();
        animal.eat();
    }

}
